interface UserTask {
  taskName: string;
  taskStatus: number;
  taskProperty: number;
  handlerName: string;
  taskDefKey: string;
  taskType: number;
  taskStatusName: string;
  taskRecordId: string;
  innerProcDefId: string;
  procInstId: string;
  handlerComment: string;
  isEndNode: number;
  handlerTime: string;
}

interface HistoryTask {
  taskName: string;
  taskDefKey: string;
  nodeStatus: number;
  nodeStatusName: string;
  nodeType: number;
  userTasks: UserTask[];
  csUserTasks: any[];
}

interface Variable {
  formValues: string;
  nrOfActiveInstances: number;
  formModelData: string;
  loopCounter: number;
  nrOfInstances: number;
  startUserId: string;
  dataId: string;
  gaea_textareaitem_6d6d035d: string;
  assignee: string;
  procType: string;
  gaea_checkbox_select_1fe83a4a: string[];
  nrOfCompletedInstances: number;
  handlerComment: string;
}

interface FormData {
  variables: Variable;
}

interface Data {
  readStatus: number; // 0未读 1已读
  taskName: string;
  department: string;
  taskDefKey: string;
  taskRecordId: string;
  innerProcDefId: string;
  procInstId: string;
  procNo: string;
  procName: string;
  procStatus: number;
  procStatusName: string;
  icon: string;
  sponsor: string;
  sponsorIcon: string;
  crtTime: string;
  historyTask: HistoryTask[];
  formData: FormData;
}

export interface IRespCopyData {
  status: number;
  srvTime: number;
  data: Data[];
  pageNum: number;
  pageSize: number;
  total: number;
}
